package org.example.curriculum_design_6_16.common.system;

import org.example.curriculum_design_6_16.common.base.BaseException;

/**
 * 系统级异常（500）
 */
public class SystemException extends BaseException {
    public SystemException(String errorCode, String message) {
        super(500, errorCode, message);
    }

    public static SystemException databaseError() {
        return new SystemException("SYS_001", "数据库服务异常");
    }
}